package com.globalresources.dao.inface;

import java.util.List;

import com.globalresources.po.Friend;

/**
 * @author aaron.lu(luzhiyuan) E-mail:atyuan.lu@gmail.com
 * @since 创建时间：Aug 6, 2009 11:36:45 AM
 */
public interface IFriendDao {
	
	/**
	 * <p>查询好友列表
	*@author aaron.lu(luzhiyuan)
	*@param nickName
	*@param onwerName
	*@param isInBacklist
	*@param pageSize
	*@param startRow
	*@return
	 */
	public List<Friend> getFriends(String nickName, String onwerName, Byte isInBacklist, final int pageSize, final int startRow);
	
	
	/**
	 * <P>统计好友数目
	*@author aaron.lu(luzhiyuan)
	*@param onwerName
	*@param isInBacklist
	*@return
	 */
	public Long countFriends(final String  onwerName, final Byte isInBacklist);
	
	/**
	 * <p>保存或更新好友信息
	*@author aaron.lu(luzhiyuan)
	*@param friend
	 */
	public void saveOrUpdateFriend(Friend friend);
	
	/**
	 * <p>删除好友信息
	*@author aaron.lu(luzhiyuan)
	*@param friend
	 */
	public void deleteFriend(Friend friend);
	
	/**
	 * <p>获取好友信息
	*@author aaron.lu(luzhiyuan)
	*@param id
	*@return
	 */
	public Friend loadFriend(Integer id);
}
